<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="../../bootstrap-table/bootstrap-table.css"/>
    <link rel="stylesheet" href="../../bootstrap/css/bootstrap-datetimepicker.min.css">
    <link rel="stylesheet" href="../../toastr/toastr.min.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
</head>
<body>
<div>
    <div>
        <div class="col-*-12">

            <div id="toolbar">
                <div class="btn btn-primary" data-toggle="modal" data-target="#addModal">添加记录</div>
                <div class="btn btn-success" data-toggle="modal" data-target="#updateModal" id="updateCarBtn">修改记录</div>
                <div class="btn btn-danger"  data-toggle="modal" data-target="#deleteModal" id="deleteCarBtn">删除记录</div>
            </div>
            <table id="driverTab" class="table table-hover"></table>

            <div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                &times;
                            </button>
                        </div>
                        <div class="modal-body">
                            <div id="insertcarinfo" role="form">
                                <!--车牌号-->
                                <div class="form-group">
                                    <input type="text" class="form-control" id="c_num" placeholder="车牌号">
                                </div>
                                <!--品牌-->
                                <div class="form-row">
                                    <div class="form-group col-md-9">
                                        <label for="c_brand">车辆品牌</label>
                                        <select id="c_brand" name="c_brand" class="form-control">
                                            <option selected value="1">徐工</option>
                                            <option selected value="2">三一</option>
                                            <option selected value="3">龙工</option>
                                        </select>
                                    </div>
                                    <div class="form-group col-md-9">
                                        <label for="model">车辆型号</label>
                                        <select id="model" name="c_brand" class="form-control">
                                            <option selected value="1">QY8T</option>
                                            <option selected value="2">QY12T</option>
                                            <option selected value="3">QY16T</option>
                                            <option selected value="4">QY25T</option>
                                            <option selected value="5">QY50T</option>
                                            <option selected value="6">QY75T</option>
                                            <option selected value="7">QY100T</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class='col-sm-6'>
                                        <div class="form-group">
                                            <label>生产日期：</label>
                                            <!--指定 date标记-->
                                            <div class='input-group date' >
                                                <input type='text' class="form-control" id="c_create" />
                                                <span class="input-group-addon">
                                                <span class="glyphicon glyphicon-calendar"></span>
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class='col-sm-6'>
                                        <div class="form-group">
                                            <label>购买时间：</label>
                                            <!--指定 date标记-->
                                            <div class='input-group date' >
                                                <input type='text' class="form-control" id="c_buytime"/>
                                                <span class="input-group-addon">
                                                <span class="glyphicon glyphicon-calendar"></span>
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <input type="text" class="form-control" id="c_buy" placeholder="价格">
                                </div>
                                <div class="form-group">
                                    <input type="text" class="form-control" id="c_money" placeholder="单价">
                                </div>
                                <div class="row">
                                    <div class="form-group col-md-9">
                                        <label for="c_people">驾驶员</label>
                                        <select id="c_people" class="form-control">
                                            <option selected value="1">王龙</option>
                                            <option selected value="2">张飞</option>
                                            <option selected value="3">薛宝华</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <button type="button" class="btn btn-primary" id="addRecord">添加</button>
                        </div>
                    </div>
                </div>
            </div>

            <div class="modal fade" id="deleteModal" tabindex="-1" role="dialog"
                 aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close"
                                    data-dismiss="modal" aria-hidden="true">
                                &times;
                            </button>
                            <h4 class="modal-title" id="myModalLabel">
                                删除图书</h4>
                        </div>
                        <div class="modal-body" id="deleteDialogMsg">

                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default"
                                    data-dismiss="modal">关闭
                            </button>
                            <button type="button" class="btn btn-primary" id="deleteBtn">
                                删除
                            </button>
                        </div>
                    </div><!-- /.modal-content --></div>
            </div>
        </div>
    </div>
</div>
<script src="../../jquery/jquery-3.4.1.min.js"></script>
<script src="../../bootstrap/js/bootstrap.min.js"></script>
<script src="../../bootstrap-table/bootstrap-table.js"></script>
<script src="../../bootstrap-table/locale/bootstrap-table-zh-CN.js"></script>
<script src="../../js/moment-with-locales.js"></script>
<script src="../../bootstrap/js/bootstrap-datetimepicker.min.js"></script>
<script src="../../toastr/toastr.min.js"></script>
<script src="../../js/driverinfo.js"></script>
</body>
</html>